10/01/2002
5:45 PM

 

PreviousNext
 
   
Frankentosh: Building Robots using Mac OS X
 
   
  • Robocode -- Analying & Action
    • Second, figure out where the bullets are, and make sure you aren't there either
      • If you're closely scanning the enemy, you can see when it suddenly reduces power
      • When it reduces power without reason... it might be firing at you.
      • From the power loss amount, it's distance from you, and the formula for bullet speed, you can guess when it might hit you.
      • One major flaw, though: you don't know the direction it's going. So it might be firing at something else!
 
   
Ted Stevko, Stevko Studios http://www.plasticnoodle.com